//团队
import { httpDelete, httpGet, httpPost, httpPut } from "../utils/http"



// 新增团队
export const addTeamsApi = (data) => {
    return httpGet('/teams/add', data)
}

// 修改团队队长
export const updaTeamsApi = (data) => {
    return httpPut('/teams/update', data)
}

// 查询团队
export const searchTeamsApi = (data) => {
    return httpPost('/teams/search', data)
}

// 删除团队
export const deleTeamsApi = (data) => {
    return httpDelete('/teams/remove', data)
}

// 获取团队成员
export const getTeamsApi = (data) => {
    return httpGet('/teams/getMembers', data)
}

// 获取团队服务包
export const getServeApi = (data) => {
    return httpGet('/teams/getServicePacks', data)
}

// 获取一个团队的详情
export const getTeamsByIdApi = (data) => {
    return httpGet('/teams/detail', data)
}


// 获取入队申请
export const getTeamsApplyForApi = (data) => {
    return httpGet('/teamApply', data)
}
